package com.yowasa.xiuxian.engine.item.zhuangbei.wuqi;

import com.yowasa.xiuxian.annoations.Item;
import com.yowasa.xiuxian.engine.item.ItemInterface;
import com.yowasa.xiuxian.entity.bo.user.UserBO;
import com.yowasa.xiuxian.entity.enums.ItemTypeEnum;
import com.yowasa.xiuxian.entity.enums.QualityEnum;


@Item(name = "薙草之稻光", type = ItemTypeEnum.WU_QI, price = 30000)
public class TiCaoZhiDaoGuang implements ItemInterface {

    private String attrJson = "{" +
            "\"hp\":400," +
            "\"mp\":200," +
            "\"atk\":125," +
            "\"spell\":0," +
            "\"def\":0," +
            "\"res\":0," +
            "\"imm\":0," +
            "\"spd\":0," +
            "\"quality\":0" +
            "}";


    @Override
    public String desc() {
        return "所谓薙刀，乃是斩除芜杂之利器。\n" +
                "秉薙刀之人，意在守护恒常之道。\n" +
                "当高踞雷云之上者俯视她所倾心的凡世，\n" +
                "所见无不浅薄的争端，闪灭的执欲泡影…\n" +
                "争夺源于无谓爱执与狂欲，乃恒世之敌。\n" +
                "搅扰不变恒世的杂草，将交由雷光殛灭。\n" +
                "「以威权刃光薙除蔓生的执妄，消灭梦想从容生灭的可能…」";
    }

    @Override
    public String effect(UserBO userBO) {
        if (!userBO.getUserConfig().getBattleStrategyList().contains("非时之梦")){
            userBO.getUserConfig().getBattleStrategyList().add("非时之梦");
        }
        return "现在可以使用非时之梦了！！！";
    }

    @Override
    public String removeEffect(UserBO userBO) {
        if (userBO.getUserConfig().getBattleStrategyList().contains("非时之梦")){
            userBO.getUserConfig().getBattleStrategyList().remove("非时之梦");
        }
        return "遗忘了非时之梦！！！";
    }


    //血，蓝，     物攻，     法攻，    物抗，    法抗，    免疫，    速度
    //{"hp":603,"chp":603,"mp":97,"cmp":97,"atk":26,"spell":14,"def":38,"res":14,"imm":25,"spd":243}
    public String attr(QualityEnum qualityEnum){
        String attr = getAttr(qualityEnum, attrJson);
        return attr;
    }

}

